import { createRouter, createWebHistory } from 'vue-router'
import Dashboard from '@/views/Dashboard.vue'
import AIHousing from '@/views/AIHousing.vue'
import AreaHousing from '@/views/AreaHousing.vue'
import MapHousing from '@/views/MapHousing.vue'
import RentOut from '@/views/RentOut.vue'
import OpenStore from '@/views/OpenStore.vue'

const routes = [
  { path: '/', redirect: '/dashboard' },
  { path: '/dashboard', component: Dashboard },
  { path: '/ai-housing', component: AIHousing },
  { path: '/area-housing', component: AreaHousing },
  { path: '/map-housing', component: MapHousing },
  { path: '/rent-out', component: RentOut },
  { path: '/open-store', component: OpenStore },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
